//
//  UrlDefine.h
//  SSSAllRollAgency
//
//  Created by 谢曦 on 2017/3/20.
//  Copyright © 2017年 Darker. All rights reserved.
//

#ifndef UrlDefine_h
#define UrlDefine_h

#define kConfigImageUrl(imagePath)   [imagePath hasPrefix:@"http"]? [NSURL URLWithString:imagePath]: [[NSURL URLWithString:kBaseUrl] URLByAppendingPathComponent:imagePath]
#define kConfigPath(path) [NetUrlTool urlStrWithPath:path]

#define kResponseStatus [responseObj[@"status"] intValue]
#define kResponseData  responseObj[@"data"]
#define kResponseMessage    responseObj[@"message"]
#define kBaseUrl [NetUrlTool baseUrl]
static NSString * const kImgStr= @"";
//static NSString * const kBaseUrl = @"http://192.168.0.230:8080/ssstc/";
//static NSString * const kBaseUrl = @"http://quantuanle.ssstc.cn/";


/********* 上传图片 *********/
static NSString * const kImageUp = @"api/fileUp/save" ;



/********* 登录 *********/
static NSString * const kLogin = @"bApi/user/login" ;

/********* 店铺 *********/
static NSString * const kMerchantDetail = @"bApi/businessInfo/businessInfo" ;
static NSString * const kMerchantUpload = @"bApi/businessInfo/editBusiness" ;

/********* 待让利 *********/
static NSString * const kOrderPending = @"bApi/order/pendingList" ;

/********* 订单处理中 *********/
static NSString * const kOrderProcessing = @"bApi/order/auditList" ;

/********* 订单已完结 *********/
static NSString * const kOrderComplete = @"bApi/order/completionList" ;

/********* 用户信息 *********/
static NSString * const kUserDetail = @"bApi/user/detail" ;

/********* 获取验证码 *********/
static NSString * const kGetCode = @"bApi/user/getCode";

/********* 校验验证码 *********/
static NSString * const kVerifyCode = @"bApi/user/checkCode";

/********* 修改登陆密码 *********/
static NSString * const kReviseLoginPassword = @"bApi/user/resetPass";

/********* 带让利订单提交 *********/
static NSString * const kOrderPendingCommit = @"bApi/order/pendingOrders";

/********* 上传图片 *********/
static NSString * const kImageCommit = @"api/fileUp/save";

/********* 我的会员 *********/
static NSString * const kMyMember = @"bApi/member/myMembers";

/********* 二维码 *********/
static NSString * const kGenerateCode = @"bApi/QRCode/getPayCode";

/********* 兑换中心 *********/
/********* 我的善心（兑换中心首页）*********/
static NSString * const kMyShandian = @"bApi/exchange/queryMyShandian";
/********* 我要兑换 *********/
static NSString * const kToExchange = @"bApi/exchange/toExchange";
/********* 计算兑换善点 *********/
static NSString * const kGetRealMoney = @"bApi/exchange/getRealMoney";
/********* 我要兑换提交 *********/
static NSString * const kExchange = @"agApi/exchange/exchange";
/********* total *********/
static NSString * const kTotal = @"bApi/exchange/totalExchange";
/********* 兑换记录 *********/
static NSString * const kExchangeRecrod = @"bApi/exchange/exchangeList";
/********* 兑换记录详情 *********/
static NSString * const kExchangeRecrodDetail = @"bApi/exchange/queryExcDetail";

/********* 推荐记录 *********/
static NSString * const kRecommendRecrod = @"bApi/user/queryRecommend";

/********* 选择店铺 *********/
static NSString * const kSelectedBusiness = @"bApi/user/getBussinessList";

/********* 查看善点变动明细 *********/
static NSString * const kScanGoodchangeDetail = @"bApi/exchange/queryShandianList";

/********* 建议反馈 *********/
static NSString * const kRecommende = @"bApi/user/addUserSuggest";

/********* 设置 *********/
static NSString * const kSettingTradeCode = @"bApi/user/addTransPwd";
static NSString * const kReviseTradeCode = @"bApi/user/modifyTransPwd";
static NSString * const kHasSettedTradeCode = @"bApi/user/hasTransPwd";
static NSString * const kFindTradeCode = @"bApi/user/findTransPwd";
static NSString * const kMyBunkCard = @"bApi/user/myBankCard";//我的银行卡
static NSString * const kDeleteBunkCard = @"bApi/user/deleteBankCard";//删除银行卡
static NSString * const kAddBunkCard = @"bApi/user/addBankCard";//绑定银行卡
static NSString * const kAddIdentity = @"bApi/user/addIdentityBind";//上传身份证照片
static NSString * const kgetBunkName = @"bApi/user/queryBankName";//获取开户行名称
static NSString * const kforgetPassword = @"bApi/user/resetPass";//忘记密码


#endif /* UrlDefine_h */
